package com.todo.member.infrastructure.mapper;

import com.todo.member.infrastructure.entity.po.MemberMedalInfoPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author azhebuxing
 * @date 2025/1/21 16:21
 * @description
 */
@Mapper
public interface MemberMedalInfoMapper {

    int insertMemberMedalInfo(MemberMedalInfoPO memberMedalInfoPO);

    int updateMemberMedalInfo(MemberMedalInfoPO memberMedalInfoPO);

    MemberMedalInfoPO queryMemberMedalInfoById(@Param("id") Long id);

    Boolean removeMemberMedalInfoById(@Param("id") Long id);

    MemberMedalInfoPO queryMemberMedalInfoByMedalCode(@Param("medalCode") String medalCode);

    MemberMedalInfoPO queryMemberMedalInfoByTitle(@Param("title") String title);

    Boolean updateMemberMedalInfoStatusById(@Param("id") Long id, @Param("oldStatus") Integer oldStatus, @Param("newStatus") Integer newStatus);
}
